/*
    例子 : https://mc.hujiang.com?a=1&b=2&c=3
*/
v.getQueryStringArgs = function () {
    if (!location.search) return {};
    var qs = location.search.substring(1).split("&"),
        args = {};
    for (var i = 0; i < qs.length; i++) {
        var idx = qs[i].indexOf('=');
        var name = qs[i].substr(0, idx);
        var val = qs[i].substr(idx + 1);
        args[name] = decodeURIComponent(val);
    }
    return args;
};

/*
    说明 : https://mc.hujiang.com/{ classid }/{ productid }/{ pointid }
    例子 : https://mc.hujiang.com/1345334/1/3
*/
v.getUrlStrArgs = function (strNum) {
    //取得url路径字符串
    var qs = location.pathname.split('/'),
        args = [],
        len = qs.length;
    //逐个将每一项添加到 args 对象中
    for (var i = strNum; i >= 1; i--) {
        args[args.length] = qs[len - i]
    }
    return args;
};